Today's Question:  What does your personal desk look like?        GIVE A SHOUT

SEARCH KEYWORD -- Date compare



  What and what not to log while debugging

Log is a critical part of an application. It serves as an eye to the programmer on how the application is working while debugging. Especially for applications running on production environment, if the application encounters problem and the problem cannot be reproduced on other environments, log will be extremely useful. While log is essential, but developers have to log smartly. Because if don't put log smartly, you may not get what you want while debugging or you may get too many...

   PROGRAMMING,DEBUG,LOG,SUPPORT     2016-03-14 08:09:03

  Remove duplicated elements in JavaScript array

During interviews, one frequent question asked would be something like how to remove duplicated elements in a JavaScript array and how many different ways you can think of. The interviewee would also be asked to write the code down. In real applications, normally front end would not need to handle this case since normally it would be done by backend, but still it's necessary for front end developers to know different ways of doing this. This post will share some of the common ways to remove dupl...

   JAVASCRIPT,ARRAY,DUPLICATED ELEMENT     2018-09-21 22:32:10

  The Art (and Science) of Consumer Experience

According to a new report on e-commerce spending and earning by eMarketer, global retail sales are set to touch $22.492 trillion in 2015, with a forecast for a steady rise over the next 3 years, i.e, until 2018. Over the years, online commerce conducted via the smartphone, tablet or even the desktop devices have steadily increased, owing to the increasing adoption of mobile devices. With more than 80% consumers accessing their mobile devices to compare products, redeem coupons or make purchases,...

   Ecommerce Web Development Company, Customer Loyalty Solutions, Ecommerce Development Company, Custom     2015-08-05 06:47:33

  Comparing Floating Point Numbers, 2012 Edition

We’ve finally reached the point in this series that I’ve been waiting for. In this post I am going to share the most crucial piece of floating-point math knowledge that I have. Here it is:[Floating-point] math is hard.You just won’t believe how vastly, hugely, mind-bogglingly hard it is. I mean, you may think it’s difficult to calculate when trains from Chicago and Los Angeles will collide, but that’s just peanuts to floating-point math.Seriously. Each ti...

   Floating point number,Comparison,True value     2012-02-23 07:11:03

  What Sort of Projects Can You Work on Using Web Scraping?

Image Source: Unsplash Web scraping is a technique used to extract large amounts of data from websites and save onto your computer in a database or time table format. There are many reasons businesses would use this information for lead generation, SEO, or to better understand their customers.  However, you can do a lot of fun projects in your free time that doesn’t have to be associated with work or a company. Before you start using your programming skills to find and extract inform...

   WEB SCRAPING     2020-09-10 09:16:44

  Magic CSS shape

There is a question on StackOverflow which states that someone finds a CSS sample on http://css-tricks.com/examples/ShapesOfCSS/  , the sample shows a triangle created with pure CSS. The source code is :#triangle-up {width: 0;height: 0;border-left: 50px solid transparent;border-right: 50px solid transparent;border-bottom: 100px solid red;}The question is how these few lines can create a triangle? Next we give the answer and the detail illustration to this question We need to consider the B...

   CSS,Triangle,Box model,Border     2012-04-20 12:56:22

  Best practices of front end optimization

1. Use DocumentFragment or innerHTML to replace complex elements insertion DOM operation on browser is expensive. Although browser performance is improved much, multiple DOM elements insertion is still expensive and will affect the page load speed. Assume we have an ul element on our page, we now want to retrieve a JSON list using AJAX and then update the ul using JavaScript. Usually we may write it as : var list = document.querySelector('ul'); ajaxResult.items.forEach(function(item) { // ...

   JavaScript,Front end,Optimization,Tips     2013-07-06 11:26:27

  5 essential job search tips for web designers

Being a web designer is about many things – an in-depth technical knowledge, a flair for great aesthetics and excellent communication skills. Even if it sounds complex (and perhaps precisely because it does), the job can be immensely rewarding and creatively stimulating. How to break in and go straight for success in this profession? Here are 5 essential tips for getting lots of web design work. 1. Develop technical skills that matter Before you enter the job market, you'll need to have a ...

   job search tips, job seekers, job search     2015-04-17 10:17:19

  Selling Yourself: Why? and How!

I know many good developers who are under the impression that they either don’t have to sell themselves, or selling themselves is wrong, but is that really true?First let me clarify by defining what I mean by “selling yourself”. I don’t mean “selling out”, I mean marketing yourself, what you’re doing and what your skills are. Especially to your organization.I don’t need to sell myself, my code speaks for itself.Really? Do you think your pristin...

   Sell,Developer,Skill,Show,Resume,CV     2011-08-10 03:19:34

  Top 10 Go Coding Traps and Tips

Go is currently the most common programming language in cloud development. Though I use it very much in my work, I am still repeating certain mistakes. This article is more a record of these errors, figuring out the causes and solutions so that people who read this article will save themselves time when coming across the same problems. Let’s cut through to the tips. Don’t rely on index var in the for loop The most common mistake we make is that we often create goroutine&nbs...

   TIPS,GOLANG,NIL INTERFACE     2021-07-03 23:45:51